Optimal. Leaf size=252 \[ \frac{b g n \text{PolyLog}\left (2,-\frac{g (d+e x)}{e f-d g}\right )}{(g h-f i)^2}-\frac{b g n \text{PolyLog}\left (2,-\frac{i (d+e x)}{e h-d i}\right )}{(g h-f i)^2}+\frac{a+b \log \left (c (d+e x)^n\right )}{(h+i x) (g h-f i)}+\frac{g \log \left (\frac{e (f+g x)}{e f-d g}\right ) \left (a+b \log \left (c (d+e x)^n\right )\right )}{(g h-f i)^2}-\frac{g \log \left (\frac{e (h+i x)}{e h-d i}\right ) \left (a+b \log \left (c (d+e x)^n\right )\right )}{(g h-f i)^2}-\frac{b e n \log (d+e x)}{(e h-d i) (g h-f i)}+\frac{b e n \log (h+i x)}{(e h-d i) (g h-f i)} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.258695, antiderivative size = 252, normalized size of antiderivative = 1., number of steps used = 12, number of rules used = 7, integrand size = 29, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.241, Rules used = {2418, 2394, 2393, 2391, 2395, 36, 31} \[ \frac{b g n \text{PolyLog}\left (2,-\frac{g (d+e x)}{e f-d g}\right )}{(g h-f i)^2}-\frac{b g n \text{PolyLog}\left (2,-\frac{i (d+e x)}{e h-d i}\right )}{(g h-f i)^2}+\frac{a+b \log \left (c (d+e x)^n\right )}{(h+i x) (g h-f i)}+\frac{g \log \left (\frac{e (f+g x)}{e f-d g}\right ) \left (a+b \log \left (c (d+e x)^n\right )\right )}{(g h-f i)^2}-\frac{g \log \left (\frac{e (h+i x)}{e h-d i}\right ) \left (a+b \log \left (c (d+e x)^n\right )\right )}{(g h-f i)^2}-\frac{b e n \log (d+e x)}{(e h-d i) (g h-f i)}+\frac{b e n \log (h+i x)}{(e h-d i) (g h-f i)} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2418
Rule 2394
Rule 2393
Rule 2391
Rule 2395
Rule 36
Rule 31
Rubi steps
\begin{align*} \int \frac{a+b \log \left (c (d+e x)^n\right )}{(h+222 x)^2 (f+g x)} \, dx &=\int \left (\frac{222 \left (a+b \log \left (c (d+e x)^n\right )\right )}{(222 f-g h) (h+222 x)^2}-\frac{222 g \left (a+b \log \left (c (d+e x)^n\right )\right )}{(222 f-g h)^2 (h+222 x)}+\frac{g^2 \left (a+b \log \left (c (d+e x)^n\right )\right )}{(222 f-g h)^2 (f+g x)}\right ) \, dx\\ &=-\frac{(222 g) \int \frac{a+b \log \left (c (d+e x)^n\right )}{h+222 x} \, dx}{(222 f-g h)^2}+\frac{g^2 \int \frac{a+b \log \left (c (d+e x)^n\right )}{f+g x} \, dx}{(222 f-g h)^2}+\frac{222 \int \frac{a+b \log \left (c (d+e x)^n\right )}{(h+222 x)^2} \, dx}{222 f-g h}\\ &=-\frac{a+b \log \left (c (d+e x)^n\right )}{(222 f-g h) (h+222 x)}-\frac{g \log \left (-\frac{e (h+222 x)}{222 d-e h}\right ) \left (a+b \log \left (c (d+e x)^n\right )\right )}{(222 f-g h)^2}+\frac{g \left (a+b \log \left (c (d+e x)^n\right )\right ) \log \left (\frac{e (f+g x)}{e f-d g}\right )}{(222 f-g h)^2}+\frac{(b e g n) \int \frac{\log \left (\frac{e (h+222 x)}{-222 d+e h}\right )}{d+e x} \, dx}{(222 f-g h)^2}-\frac{(b e g n) \int \frac{\log \left (\frac{e (f+g x)}{e f-d g}\right )}{d+e x} \, dx}{(222 f-g h)^2}+\frac{(b e n) \int \frac{1}{(h+222 x) (d+e x)} \, dx}{222 f-g h}\\ &=-\frac{a+b \log \left (c (d+e x)^n\right )}{(222 f-g h) (h+222 x)}-\frac{g \log \left (-\frac{e (h+222 x)}{222 d-e h}\right ) \left (a+b \log \left (c (d+e x)^n\right )\right )}{(222 f-g h)^2}+\frac{g \left (a+b \log \left (c (d+e x)^n\right )\right ) \log \left (\frac{e (f+g x)}{e f-d g}\right )}{(222 f-g h)^2}-\frac{(b g n) \operatorname{Subst}\left (\int \frac{\log \left (1+\frac{g x}{e f-d g}\right )}{x} \, dx,x,d+e x\right )}{(222 f-g h)^2}+\frac{(b g n) \operatorname{Subst}\left (\int \frac{\log \left (1+\frac{222 x}{-222 d+e h}\right )}{x} \, dx,x,d+e x\right )}{(222 f-g h)^2}+\frac{(222 b e n) \int \frac{1}{h+222 x} \, dx}{(222 d-e h) (222 f-g h)}-\frac{\left (b e^2 n\right ) \int \frac{1}{d+e x} \, dx}{(222 d-e h) (222 f-g h)}\\ &=\frac{b e n \log (h+222 x)}{(222 d-e h) (222 f-g h)}-\frac{b e n \log (d+e x)}{(222 d-e h) (222 f-g h)}-\frac{a+b \log \left (c (d+e x)^n\right )}{(222 f-g h) (h+222 x)}-\frac{g \log \left (-\frac{e (h+222 x)}{222 d-e h}\right ) \left (a+b \log \left (c (d+e x)^n\right )\right )}{(222 f-g h)^2}+\frac{g \left (a+b \log \left (c (d+e x)^n\right )\right ) \log \left (\frac{e (f+g x)}{e f-d g}\right )}{(222 f-g h)^2}+\frac{b g n \text{Li}_2\left (-\frac{g (d+e x)}{e f-d g}\right )}{(222 f-g h)^2}-\frac{b g n \text{Li}_2\left (\frac{222 (d+e x)}{222 d-e h}\right )}{(222 f-g h)^2}\\ \end{align*}
Mathematica [A] time = 0.249641, size = 196, normalized size = 0.78 \[ \frac{b g n \text{PolyLog}\left (2,\frac{g (d+e x)}{d g-e f}\right )-b g n \text{PolyLog}\left (2,\frac{i (d+e x)}{d i-e h}\right )+\frac{(g h-f i) \left (a+b \log \left (c (d+e x)^n\right )\right )}{h+i x}+g \log \left (\frac{e (f+g x)}{e f-d g}\right ) \left (a+b \log \left (c (d+e x)^n\right )\right )-g \log \left (\frac{e (h+i x)}{e h-d i}\right ) \left (a+b \log \left (c (d+e x)^n\right )\right )-\frac{b e n (g h-f i) (\log (d+e x)-\log (h+i x))}{e h-d i}}{(g h-f i)^2} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] time = 0.735, size = 970, normalized size = 3.9 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} a{\left (\frac{g \log \left (g x + f\right )}{g^{2} h^{2} - 2 \, f g h i + f^{2} i^{2}} - \frac{g \log \left (i x + h\right )}{g^{2} h^{2} - 2 \, f g h i + f^{2} i^{2}} + \frac{1}{g h^{2} - f h i +{\left (g h i - f i^{2}\right )} x}\right )} + b \int \frac{\log \left ({\left (e x + d\right )}^{n}\right ) + \log \left (c\right )}{g i^{2} x^{3} + f h^{2} +{\left (2 \, g h i + f i^{2}\right )} x^{2} +{\left (g h^{2} + 2 \, f h i\right )} x}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F] time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left (\frac{b \log \left ({\left (e x + d\right )}^{n} c\right ) + a}{g i^{2} x^{3} + f h^{2} +{\left (2 \, g h i + f i^{2}\right )} x^{2} +{\left (g h^{2} + 2 \, f h i\right )} x}, x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{b \log \left ({\left (e x + d\right )}^{n} c\right ) + a}{{\left (g x + f\right )}{\left (i x + h\right )}^{2}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]